package com.sunducation.wts.room.one2one.dao

import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
import com.sunducation.wts.room.one2one.bean.OneDogAndOwner

@Dao
interface OneDogAndOwnerDao {
    //可以避免两次查询
    @Transaction
    @Query("SELECT * FROM OneOwner")
    fun getOneDogsAndOwners():List<OneDogAndOwner>
}